package com.project.ds;

import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;

import com.dtyunxi.ds.BaseMapper;
import com.project.entity.user.User;

@Mapper
public interface UserMapper extends BaseMapper<User>{
	
	@Select("SELECT * FROM B_USER WHERE mobile = #{mobile} AND id <> #{id}")
	User getByMobile(@Param("id")Long id,@Param("mobile") String mobile);

}
